# where this engine and the project (game) is located
app_loc=$1
project_loc=$2

# get all game files and add them to a single file
files=$(ls $2/*.js)
cat ${files} > $2/build/game.js

# get all engine files and add them to a single file
files=$(ls $1/src/*.js)
cat ${files} > $2/build/engine.js

# make sure build folder exists
mkdir -p $2/build
mkdir -p $2/images
mkdir -p $2/audio

# copy all engine and game files to build folder
cp -r $1/index.html $2/images $2/audio $2/build
